package com.dongjiantong.user.model.dtos;


import com.dongjiantong.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import java.util.Date;

/**
 * Created by ThinkPad on 2017/12/18.
 */
@Data
public class FarmsDto extends BaseEntity {


    /**
     * 养殖场code
     */
    private String farmscode;

    /**
     * 名称
     */
    private String farmsname;

    /**
     * 状态，1：正常，-1：删除
     */
    private Integer status;

    @Column(name = "animal_onetype")
    private Integer animalOneType;

    @Column(name = "animal_onename")
    private String animalOneName;

    @Column(name = "animal_twotype")
    private Integer animalTwoType;


    @Column(name = "animal_twoname")
    private String animalTwoName;

    /**
     * 1 养殖场，2 散户,3 屠宰场, 4无害化, 5物流公司 (字典中取值)
     */
    @Column(name = "farms_type")
    private Integer farmsType;

    /**
     * 是否规模场,0:不是;1:是(散户之类的不是规模化养殖场)
     */
    @Column(name = "is_scale")
    private Integer isScale;

    /**
     * 即年出栏量
     */
    private Integer scale;

    /**
     * 场主联系人
     */
    private String linkman;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * A,B,C类型
     */
    private String rank;


    /**
     * 养殖场的地址，是否属于 3禁养区、2限养区、1适养区
     */
    private Integer scope;

    /**
     * 省
     */
    private String province;

    /**
     * 省ID
     */
    @Column(name = "province_id")
    private Integer provinceId;

    /**
     * 市
     */
    private String city;

    /**
     * 市ID
     */
    @Column(name = "city_id")
    private Integer cityId;

    /**
     * 区
     */
    private String region;

    /**
     * 区ID
     */
    @Column(name = "region_id")
    private Integer regionId;

    /**
     * 街道，可以为空
     */
    private String street;

    /**
     * 街道ID，可以为空
     */
    @Column(name = "street_id")
    private Integer streetId;

    private String village;

    @Column(name = "village_id")
    private Integer villageId;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;
    /**
     * 开通区域ID
     */
    @Column(name = "region_account_id")
    private Integer regionAccountId;

    @Column(name = "created_id")
    private Long createdId;

    @Column(name = "delete_flag")
    private Integer deleteFlag;
    /**
     * 是否拒防户
     */
    @Column(name = "is_reject_imm")
    private Integer isRejectImm;
    /**
     * 更改人ID
     */
    @Column(name = "updated_id")
    private Integer updatedId;

    @Column(name = "created_at")
    private Date createdAt;

    @Column(name = "updated_at")
    private Date updatedAt;
    private Integer initial_stock;
    private Integer real_stock;

}
